/*    */
package server.maps;

import kotlin.Metadata;
import kotlin.TypeCastException;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import tools.Randomizer;

import java.awt.*;
import java.util.ArrayList;

@Metadata(mv = {1, 1, 16}, bv = {1, 0, 3}, k = 1, d1 = {"\0006\n\002\030\002\n\002\020\000\n\000\n\002\020\b\n\002\b\002\n\002\030\002\n\002\b\023\n\002\030\002\n\002\030\002\n\002\b\003\n\002\020\002\n\002\b\005\n\002\020\013\n\002\b\003\030\0002\0020\001:\001'B\035\022\006\020\002\032\0020\003\022\006\020\004\032\0020\003\022\006\020\005\032\0020\006¢\006\002\020\007J.\020\036\032\0020\0372\006\020 \032\0020\0032\006\020!\032\0020\0032\006\020\"\032\0020\0032\006\020#\032\0020\0032\006\020$\032\0020%J\006\020&\032\0020\037R\032\020\b\032\0020\003X\016¢\006\016\n\000\032\004\b\t\020\n\"\004\b\013\020\fR\021\020\004\032\0020\003¢\006\b\n\000\032\004\b\r\020\nR\034\020\016\032\004\030\0010\006X\016¢\006\016\n\000\032\004\b\017\020\020\"\004\b\021\020\022R\032\020\023\032\0020\003X\016¢\006\016\n\000\032\004\b\024\020\n\"\004\b\025\020\fR\021\020\002\032\0020\003¢\006\b\n\000\032\004\b\026\020\nR\032\020\005\032\0020\006X\016¢\006\016\n\000\032\004\b\027\020\020\"\004\b\030\020\022R\033\020\031\032\f\022\b\022\0060\033R\0020\0000\032¢\006\b\n\000\032\004\b\034\020\035¨\006("}, d2 = {"Lserver/maps/MapleSwordNode;", "", "monsterId", "", "bKO", "point", "Ljava/awt/Point;", "(IILjava/awt/Point;)V", "bKM", "getBKM", "()I", "setBKM", "(I)V", "getBKO", "bKQ", "getBKQ", "()Ljava/awt/Point;", "setBKQ", "(Ljava/awt/Point;)V", "count", "getCount", "setCount", "getMonsterId", "getPoint", "setPoint", "swordNodeInfos", "Ljava/util/ArrayList;", "Lserver/maps/MapleSwordNode$MapleSwordNodeInfo;", "getSwordNodeInfos", "()Ljava/util/ArrayList;", "SpawnFiyingSword", "", "top", "bottom", "left", "right", "bl2", "", "gainCount", "MapleSwordNodeInfo", "Server"})
/*    */ public final class MapleSwordNode {
    private int bKM;
    private int count;
    @NotNull
    /*    */ private final ArrayList<MapleSwordNodeInfo> swordNodeInfos;
    @Nullable
    /*    */ private Point bKQ;
    private final int monsterId;
    private final int bKO;
    @NotNull
    /*    */ private Point point;

    /*    */
    /*  7 */
    public final int getMonsterId() {
        return this.monsterId;
    }

    public final int getBKO() {
        return this.bKO;
    }

    @NotNull
    public final Point getPoint() {
        return this.point;
    }

    public final void setPoint(@NotNull Point a) {
        Intrinsics.checkParameterIsNotNull(  a," a");
        this.point =  a;
    }

    public MapleSwordNode(int monsterId, int bKO, @NotNull Point point) {
        this.monsterId = monsterId;
        this.bKO = bKO;
        this.point = point;
        /*    */
        /*    */
        /* 10 */
        this.swordNodeInfos = new ArrayList<MapleSwordNodeInfo>();
        /*    */
        /*    */
        /*    */
        /* 14 */
        this.swordNodeInfos.add(new MapleSwordNodeInfo(1, this.bKO, 0, 0, 0, 0, 0, 0, 0, this.point));
    }

    /*    */
    public final int getBKM() {
        return this.bKM;
    }

    /*    */
    public final void setBKM(int  a) {
        this.bKM =  a;
    }

    /*    */
    public final int getCount() {
        return this.count;
    }

    /* 18 */
    public final void gainCount() {
        this.count++;
    }

    public final void setCount(int  a) {
        this.count =  a;
    }

    /*    */
    @NotNull
    public final ArrayList<MapleSwordNodeInfo> getSwordNodeInfos() {
        return this.swordNodeInfos;
    }

    /*    */
    @Nullable
    public final Point getBKQ() {
        return this.bKQ;
    }

    /*    */
    public final void setBKQ(@Nullable Point a) {
        this.bKQ =  a;
    }

    /* 22 */
    public final void SpawnFiyingSword(int top, int bottom, int left, int right, boolean bl2) {
        if (bl2) {
            this.swordNodeInfos.clear();
        }

        if (this.swordNodeInfos.size() != 14) {
            int n6 = 14;
            int i2 = this.swordNodeInfos.size();
            int var8 = n6 - 1;
            if (i2 <= var8) {
                while(true) {
                    int n7 = 1;
                    int n8 = this.bKO;
                    int n9 = i2;
                    int n10 = i2 == 12 ? 60 : 35;
                    int n11 = i2 == 12 ? 500 : 0;
                    int n12 = i2 == 13 ? 11000 : 0;
                    int n13 = 0;
                    int n14 = i2 == 13 ? 1 : 0;
                    int n15 = 0;
                    Point point = new Point(Randomizer.rand(left, right), Randomizer.rand(top / 2, bottom - 20));
                    Point var10000;
                    if (i2 == 12) {
                        this.bKQ = new Point(Randomizer.rand(left, right), 15);
                        var10000 = this.bKQ;
                        if (var10000 == null) {
                            throw new TypeCastException("null cannot be cast to non-null type java.awt.Point");
                        }

                        point = var10000;
                    } else if (n14 > 0) {
                        var10000 = this.bKQ;
                        if (var10000 == null) {
                            throw new TypeCastException("null cannot be cast to non-null type java.awt.Point");
                        }

                        point = var10000;
                    }

                    this.swordNodeInfos.add(new MapleSwordNodeInfo(n7, n8, n9, n10, n11, n12, n13, n14, n15, point));
                    if (i2 == var8) {
                        break;
                    }

                    ++i2;
                }
            }
        }

    }

    @Metadata(mv = {1, 1, 16}, bv = {1, 0, 3}, k = 1, d1 = {"\000\032\n\002\030\002\n\002\020\000\n\000\n\002\020\b\n\002\b\t\n\002\030\002\n\002\b\016\b\004\030\0002\0020\001BU\022\006\020\002\032\0020\003\022\006\020\004\032\0020\003\022\006\020\005\032\0020\003\022\006\020\006\032\0020\003\022\006\020\007\032\0020\003\022\006\020\b\032\0020\003\022\006\020\t\032\0020\003\022\006\020\n\032\0020\003\022\006\020\013\032\0020\003\022\006\020\f\032\0020\r¢\006\002\020\016R\021\020\004\032\0020\003¢\006\b\n\000\032\004\b\017\020\020R\021\020\006\032\0020\003¢\006\b\n\000\032\004\b\021\020\020R\021\020\007\032\0020\003¢\006\b\n\000\032\004\b\022\020\020R\021\020\b\032\0020\003¢\006\b\n\000\032\004\b\023\020\020R\021\020\t\032\0020\003¢\006\b\n\000\032\004\b\024\020\020R\021\020\n\032\0020\003¢\006\b\n\000\032\004\b\025\020\020R\021\020\013\032\0020\003¢\006\b\n\000\032\004\b\026\020\020R\021\020\005\032\0020\003¢\006\b\n\000\032\004\b\027\020\020R\021\020\002\032\0020\003¢\006\b\n\000\032\004\b\030\020\020R\021\020\f\032\0020\r¢\006\b\n\000\032\004\b\031\020\032¨\006\033"}, d2 = {"Lserver/maps/MapleSwordNode$MapleSwordNodeInfo;", "", "nodeType", "", "bKS", "nodeIndex", "bKU", "bKV", "bKW", "bKX", "bKY", "bKZ", "pos", "Ljava/awt/Point;", "(Lserver/maps/MapleSwordNode;IIIIIIIIILjava/awt/Point;)V", "getBKS", "()I", "getBKU", "getBKV", "getBKW", "getBKX", "getBKY", "getBKZ", "getNodeIndex", "getNodeType", "getPos", "()Ljava/awt/Point;", "Server"})
    public final class MapleSwordNodeInfo {
        private final int nodeType;
        private final int bKS;
        private final int nodeIndex;
        private final int bKU;
        private final int bKV;

        public final int getNodeType() {
            return this.nodeType;
        }

        private final int bKW;
        private final int bKX;
        private final int bKY;
        private final int bKZ;
        @NotNull
        private final Point pos;

        public final int getBKS() {
            return this.bKS;
        }

        public final int getNodeIndex() {
            return this.nodeIndex;
        }

        public final int getBKU() {
            return this.bKU;
        }

        public final int getBKV() {
            return this.bKV;
        }

        public final int getBKW() {
            return this.bKW;
        }

        public final int getBKX() {
            return this.bKX;
        }

        public final int getBKY() {
            return this.bKY;
        }

        public final int getBKZ() {
            return this.bKZ;
        }

        @NotNull
        public final Point getPos() {
            return this.pos;
        }

        public MapleSwordNodeInfo(int nodeType, int bKS, int nodeIndex, int bKU, int bKV, int bKW, int bKX, int bKY, @NotNull int bKZ, Point pos) {
            this.nodeType = nodeType;
            this.bKS = bKS;
            this.nodeIndex = nodeIndex;
            this.bKU = bKU;
            this.bKV = bKV;
            this.bKW = bKW;
            this.bKX = bKX;
            this.bKY = bKY;
            this.bKZ = bKZ;
            this.pos = pos;
        }
        /*    */
    }
    /*    */
}


/* Location:              C:\PGX\Server.jar!\server\maps\MapleSwordNode.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */